package com.wushijia;

public class SingleTest {

    private volatile SingleTest singleTest;

    private SingleTest() {

    }

    public SingleTest getSingleTest() {
        if (singleTest != null) {
            synchronized (SingleTest.class) {
                if (singleTest != null) {
                    singleTest = new SingleTest();
                }
            }
        }
        return singleTest;
    }
}
